package com.tgpms.interfaces.hongbo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created By Riven on 2020-9-14
 */
@Component
@ConfigurationProperties(prefix = "hongbo")
public class HbProperties {

    /**
     * 宏波ip地址动态获取
     */
    public static String ip;

    @Value("${hongbo.ip}")
    public void setIp(String ip) {
        HbProperties.ip = ip;
    }
}
